import styled from 'styled-components'

export const MainHeaderWrapper = styled.div`
  height: 70px;
  font-size: 14px;
  justify-content: center;
  background-color: #242424;
  .main_header {
    width: 1100px;
    height: 70px;
    color: #fff;
    display: flex;
    align-items: center;

    .main_logo {
      width: 176px;
      height: 69px;
      background-position: 0 0;

      .logo_text {
        float: left;
        width: 157px;
        height: 100%;
        padding-right: 20px;
        text-indent: -9999px;
      }
    }
  }
  .line {
    height: 5px;
    background-color: #c20c0c;
  }
`

export const MainHeaderleft = styled.div`
  .main_nav {
    width: 588px;
    height: 70px;
    .nav_ul {
      width: inherit;
      height: 70px;
      display: flex;
      align-items: center;
      .nav_item {
        flex: 1;
        height: 70px;
        line-height: 70px;
        text-align: center;
        .nav_a {
          width: 100%;
          height: 100%;
          position: relative;
          display: inline-block;
        }
        .active .icon {
          position: absolute;
          display: inline-block;
          width: 12px;
          height: 7px;
          bottom: -1px;
          left: 50%;
          transform: translate(-50%, 0);
          background-position: -226px 0;
        }
        &:hover,
        .active {
          color: #fff;
          background: #000;
          text-decoration: none;
        }
      }
    }
  }
`
export const MainHeaderRight = styled.div`
  display: flex;
  align-items: center;
  color: #787878;
  font-size: 12px;
  margin-left: 19px;
  > .search {
    width: 158px;
    height: 32px;
    border-radius: 16px;

    input {
      &::placeholder {
        font-size: 12px;
      }
    }
  }
  .center {
    width: 90px;
    height: 32px;
    line-height: 32px;
    margin: 0 16px;
    text-align: center;
    border: 1px solid #666;
    border-radius: 16px;
    color: #ccc;
    cursor: pointer;

    &:hover {
      color: #fff;
      border-color: #fff;
    }
  }

  .login {
    color: #787878;
    font-size: 12px;
    cursor: pointer;
    &:hover {
      color: #fff;
      text-decoration: underline;
    }
  }
`
